package com.xujl.mvcbind.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author x
 * @Description
 */
public class MainBean {
    private String name;
    private Class<?> activityClass;
    private Class<?> FragmentClass;
    private String fragmentApi;
    private String activityApi;
    private List<MainBean> mChildList = new ArrayList<>();

    public MainBean (String name, Class<?> fragmentClass) {
        this.name = name;
        FragmentClass = fragmentClass;
    }

    public String getFragmentApi () {
        return fragmentApi;
    }

    public MainBean setFragmentApi (String fragmentApi) {
        this.fragmentApi = fragmentApi;
        return this;
    }

    public String getActivityApi () {
        return activityApi;
    }

    public MainBean setActivityApi (String activityApi) {
        this.activityApi = activityApi;
        return this;
    }

    public void addChild (MainBean bean) {
        mChildList.add(bean);
    }

    public List<MainBean> getChildList () {
        return mChildList;
    }

    public MainBean (String name) {
        this.name = name;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public Class<?> getActivityClass () {
        return activityClass;
    }

    public void setActivityClass (Class<?> activityClass) {
        this.activityClass = activityClass;
    }

    public Class<?> getFragmentClass () {
        return FragmentClass;
    }

    public void setFragmentClass (Class<?> fragmentClass) {
        FragmentClass = fragmentClass;
    }
}
